package com.minelx.scriptbuilder.parse.parser;

import com.minelx.scriptbuilder.script.IVariable;
import com.minelx.scriptbuilder.script.ScriptContext;
import com.minelx.sequence.IStringScanner;

public class ValuesParser {

	private final SequenceMatcher sequenceMatcher;

	public ValuesParser(ScriptContext context) {
		sequenceMatcher = new SequenceMatcher(new CommonValueMatcher(context));
	}

	public IVariable parse(IStringScanner scanner) {
		return sequenceMatcher.onMatched(scanner);
	}
}
